import random
from core.agent import Agent

class TestAgent(Agent):
    """Randomly invests or not with 1/3 probability."""

    def decide(self, my_id, info):
        return random.random() < .3